/*
 * @Author: Simon 1958058172@qq.com
 * @Date: 2025-08-01 15:38:53
 * @LastEditors: Simon 1958058172@qq.com
 * @LastEditTime: 2025-08-01 15:49:47
 * @FilePath: \java.1212\day02\work01\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day02.work01;

public class Test {
    public static void main(String[] args) { 
Truck t = new Truck("北汽", "苏U12345", "中型"); 
int rent = t.getRent(3); 
System.out.println(t.getBrand() + "\t" + 
t.getPlateNumber() + " 租金为：" + rent); 
//输出 北汽 苏U12345 租金为：1050 
Antomobile b = new Bus("宇通", "苏A11111", 30); 
int busRent = b.getRent(10); 
System.out.println(b.getBrand() + "\t" + 
b.getPlateNumber() + " 租金为：" + busRent); 
//输出 宇通 苏A11111 租金为：6000 
} 
}
